package Day08.Demo04;

/**
 * @author hyhWTX
 * @version 1.0
 * @date 2022年02月27日 12:08
 */

import java.util.Arrays;



public class Demo01Arrays {
    public static void main(String[] args) {
        int [] intArray = {10,20,30};
        //将int[]数组按照默认格式变成字符串
        String intStr = Arrays.toString(intArray);
        System.out.println(intStr);

        int [] array1 = {2,1,3,5,4,6,9,7,10};
        Arrays.sort(array1);
        System.out.println(Arrays.toString(array1));

        String [] array2 = {"bbb","aaa","ccc"};
        Arrays.sort(array2);
        System.out.println(Arrays.toString(array2));
    }
}
